import service from '@/utils/request'
// @Tags A商品1
// @Summary 创建商品1
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品1 true "创建商品1"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /shangpin1/createA商品1 [post]
export const createA商品1 = (data) => {
  return service({
    url: '/shangpin1/createA商品1',
    method: 'post',
    data
  })
}

// @Tags A商品1
// @Summary 删除商品1
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品1 true "删除商品1"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangpin1/deleteA商品1 [delete]
export const deleteA商品1 = (params) => {
  return service({
    url: '/shangpin1/deleteA商品1',
    method: 'delete',
    params
  })
}

// @Tags A商品1
// @Summary 批量删除商品1
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除商品1"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangpin1/deleteA商品1 [delete]
export const deleteA商品1ByIds = (params) => {
  return service({
    url: '/shangpin1/deleteA商品1ByIds',
    method: 'delete',
    params
  })
}

// @Tags A商品1
// @Summary 更新商品1
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A商品1 true "更新商品1"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /shangpin1/updateA商品1 [put]
export const updateA商品1 = (data) => {
  return service({
    url: '/shangpin1/updateA商品1',
    method: 'put',
    data
  })
}

// @Tags A商品1
// @Summary 用id查询商品1
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.A商品1 true "用id查询商品1"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /shangpin1/findA商品1 [get]
export const findA商品1 = (params) => {
  return service({
    url: '/shangpin1/findA商品1',
    method: 'get',
    params
  })
}

// @Tags A商品1
// @Summary 分页获取商品1列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取商品1列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shangpin1/getA商品1List [get]
export const getA商品1List = (params) => {
  return service({
    url: '/shangpin1/getA商品1List',
    method: 'get',
    params
  })
}
// @Tags A商品1
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /shangpin1/findA商品1DataSource [get]
export const getA商品1DataSource = () => {
  return service({
    url: '/shangpin1/getA商品1DataSource',
    method: 'get',
  })
}
// @Tags A商品1
// @Summary 不需要鉴权的商品1接口
// @accept application/json
// @Produce application/json
// @Param data query request.A商品1Search true "分页获取商品1列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /shangpin1/getA商品1Public [get]
export const getA商品1Public = () => {
  return service({
    url: '/shangpin1/getA商品1Public',
    method: 'get',
  })
}